import baseApi from './baseApi'

export default {
  findBooks(dateNow) {
    return baseApi.postApi('/book/find', dateNow);
  },
  findDayBooks(dateNow) {
    return baseApi.postApi('/book/findAll', dateNow);
  },
  bookBook(bookForm) {
    return baseApi.postApi('/book/book', bookForm);
  },
  findDeptBookList(param) {
    return baseApi.getApi('/book/findDeptBookList', param);
  },
  findPendingApprovalBookList() {
    return baseApi.getApi('/book/findPendingApprovalBookList');
  },
  approve(parms) {
    return baseApi.getApi('/book/approve', parms);
  },
  cancel(id) {
    return baseApi.getUrlApi('/book/cancel', id);
  }
}